package com.peza.bikelog.common.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Embeddable
public class FitnessData implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Enumerated (EnumType.STRING)
	private TrainingZone zone;
	
	@Column (name="AHB")
	private int averageHr;
	
	@Column (name="MHB")
	private int maxHr;
	
	@Column (name="REC")
	private int recPct;
	
	@Column (name="D1")
	private int d1Pct;
	
	@Column (name="D2")
	private int d2Pct;
	
	@Column (name="D3")
	private int d3Pct;
	
	@Column (name="MAX")
	private int maxPct;
	
	@Column (name="KCAL")
	private int kcal;

	public int getAverageHr() {
		return averageHr;
	}

	public void setAverageHr(int averageHr) {
		this.averageHr = averageHr;
	}

	public int getMaxHr() {
		return maxHr;
	}

	public void setMaxHr(int maxHr) {
		this.maxHr = maxHr;
	}

	public int getRecPct() {
		return recPct;
	}

	public void setRecPct(int recPct) {
		this.recPct = recPct;
	}

	public int getD1Pct() {
		return d1Pct;
	}

	public void setD1Pct(int d1Pct) {
		this.d1Pct = d1Pct;
	}

	public int getD2Pct() {
		return d2Pct;
	}

	public void setD2Pct(int d2Pct) {
		this.d2Pct = d2Pct;
	}

	public int getD3Pct() {
		return d3Pct;
	}

	public void setD3Pct(int d3Pct) {
		this.d3Pct = d3Pct;
	}

	public int getMaxPct() {
		return maxPct;
	}

	public void setMaxPct(int maxPct) {
		this.maxPct = maxPct;
	}

	public int getKcal() {
		return kcal;
	}

	public void setKcal(int kcal) {
		this.kcal = kcal;
	}

	public TrainingZone getZone() {
		return zone;
	}

	public void setZone(TrainingZone zone) {
		this.zone = zone;
	}

	@Override
	public String toString() {
		return "FitnessData [zone=" + zone + ", averageHr=" + averageHr
				+ ", maxHr=" + maxHr + ", recPct=" + recPct + ", d1Pct="
				+ d1Pct + ", d2Pct=" + d2Pct + ", d3Pct=" + d3Pct + ", maxPct="
				+ maxPct + ", kcal=" + kcal + "]";
	}
	
	
}
